package com.share.shrimpcolo.pet;

class Penguin extends Pet {

	private String sex; //性别
	
	public Penguin(String name, String sex) {
		super(name);
		this.sex = sex;
	}
	
	public void print() {
		super.print();
		System.out.println("性别是 " + this.sex);
	}

	@Override
	public void eat() {
		super.health = super.health + 5;
		System.out.println("企鹅" + super.name + "吃饱了， 健康值增加5");
	}	
	
}
